/**
 Copyright (C) 2013 Yuyao Liang

 This source code is release under the BSD License.

 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE.  See the license for more details.

 Created on Nov 11, 2013 1:55:19 PM
 */
package com.googlecode.backtest.dataset.provider;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlElement;

import com.googlecode.backtest.dataset.IBackTestStockDataset;

/**
 * @author lianyuy
 * 
 */
public abstract class DataProvider implements
		IDataProvider<IBackTestStockDataset> {

	@XmlElement
	protected ArrayList<String> stocks;

	/**
	 * 
	 */
	public DataProvider() {
		super();
	}

	/**
	 * @return the stocks
	 */
	public ArrayList<String> getstocks() {
		return stocks;
	}

	public String getStock(int index) {
		return stocks.get(index);
	}

	/**
	 * @param stocks
	 *            the stocks to set
	 */
	public void setStocks(ArrayList<String> stocks) {
		this.stocks = stocks;
	}

}